﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Program
    {
        static void Main(string[] args)
        {
            //2、根据图片，写出四个英雄和他们的父类，需要有输出数据的方法，需要有构造方法。
            AiLuoKe alk = new AiLuoKe();
            alk.Nickname = "马三";
            alk.Heroname = "埃洛克";
            alk.Referral = "是个边界的勇士";
            alk.Atk = 80;
            alk.Defen = 70;
            alk.Speed = 50;
            alk.our();
            alk.LieYanMaoGou();
            alk.ZhanDouPaoXiao();
            alk.SuiShiDaJi();

            TaiLa tl = new TaiLa();
            tl.Nickname = "马散";
            tl.Heroname = "泰拉";
            tl.Referral = "是个复仇的法师";
            tl.Atk = 70;
            tl.Defen = 65;
            tl.Speed = 50;
            tl.our();
            tl.JuLangChongJi();
            tl.YuanSuTuJi();
            tl.FuChouShaLu();

            LuKaSi lk = new LuKaSi();
            lk.Nickname = "阿萨分";
            lk.Heroname = "卢卡斯";
            lk.Referral = "是个彬彬有礼的剑客";
            lk.Atk = 70;
            lk.Defen = 50;
            lk.Speed = 60;
            lk.our();
            lk.JianSuXianJing();
            lk.NengLiangLangChao();
            lk.XuanFengJianWu();

            LouFei lf = new LouFei();
            lf.Nickname = "阿萨德";
            lf.Heroname = "洛菲";
            lf.Referral = "是个擅长传送魔法的时空旅行者";
            lf.Atk = 70;
            lf.Defen = 40;
            lf.Speed = 80;
            lf.our();
            lf.NengLiangJingLing();
            lf.AnYingChuanSong();
            lf.ShiKingBenglie();
        }

    }
    class father
    {
        private string heroname;
        private string nickname;
        private string referral;
        private int atk;
        private int defen;
        private int speed;

        public string Heroname
        {
            get { return this.heroname; }
            set { this.heroname = value; }
        }
        public string Nickname
        {
            get { return this.nickname; }
            set { this.nickname = value; }
        }
        public string Referral
        {
            get { return this.referral; }
            set { this.referral = value; }
        }
        public int Atk
        {
            get { return this.atk; }
            set { this.atk = value; }
        }
        public int Defen
        {
            get { return this.defen; }
            set { this.defen = value; }
        }
        public int Speed
        {
            get { return this.speed; }
            set { this.speed = value; }
        }
        public father()
        {
        }
        public father(string heroname, string nicknama, string referral, int atk, int defen, int speed)
        {
            this.heroname = heroname;
            this.nickname = nicknama;
            this.referral = referral;
            this.atk = atk;
            this.defen = defen;
            this.speed = speed;

        }
        public void our()
        {
            Console.WriteLine("{0}，{1}，{2}，{3}，{4}，{5}", this.nickname, this.heroname, this.referral, this.atk, this.defen, this.speed);
        }

    }
    class AiLuoKe : father
    {
        public void SuiShiDaJi()
        {
            Console.WriteLine("碎石打击");
        }
        public void LieYanMaoGou()
        {
            Console.WriteLine("烈焰锚钩");
        }
        public void ZhanDouPaoXiao()
        {
            Console.WriteLine("战斗咆哮");
        }
    }
    class LouFei : father
    {
        public void NengLiangJingLing()
        {
            Console.WriteLine("能量精灵");
        }
        public void AnYingChuanSong()
        {
            Console.WriteLine("暗影传送");
        }
        public void ShiKingBenglie()
        {
            Console.WriteLine("时空迸裂");
        }
    }
    class LuKaSi : father
    {
        public void JianSuXianJing()
        {
            Console.WriteLine("减速陷阱");
        }
        public void NengLiangLangChao()
        {
            Console.WriteLine("能量浪潮");
        }
        public void XuanFengJianWu()
        {
            Console.WriteLine("旋风剑舞");
        }

    }
    class TaiLa : father
    {
        public void JuLangChongJi()
        {
            Console.WriteLine("巨浪冲击");
        }
        public void YuanSuTuJi()
        {
            Console.WriteLine("元素突击");
        }
        public void FuChouShaLu()
        {
            Console.WriteLine("复仇杀戮");
        }

    }

}
